﻿
@{
    var Items =ViewBag.Items;
    }
<style>
    .table {
        min-width: 98%;
        margin: 0 auto;
        text-align: center;
        font-family: 'Courier New';
    }

        .table th {
            background-color: #444;
            color: #eee;
            font-family: "Microsoft YaHei";
        }

        .table th, .table td {
            text-align: center;
            padding: 10px 0;
        }
</style>
<table class="table">
    <thead>
        <tr>
            <th>点号</th>
            @{
                for (var i = 0; i < Items.Count; i++)
                {
                    <th>@Items[i][0].time</th>
                }
            }
        </tr>
    </thead>
    <tbody>
        @{
            for (var i = 0; i < Items[0].Count; i++)
            {
            <tr>
                <td>@Items[0][i].name</td>
                @{
                for (var j = 0; j < Items.Count; j++)
                {
                    <td>@(Items[j][i]!=null?Items[j][i].value:"")</td>
                }
                }
            </tr>
            }
        }
    </tbody>
    <tr>
        <td></td>
    </tr>
</table>
